package com.chey.service.impl;

import com.chey.dao.PermissionDao;
import com.chey.domain.Permission;
import com.chey.service.PermissionService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

@Service
public class PermissionServiceImpl implements PermissionService {
    @Autowired
    private PermissionDao dao;
    @Override
    public List<Permission> searchByUserId(Integer id) {
        return dao.selectByUid(id);
    }
}
